﻿@namespace ThingsGateway.Razor
@using ThingsGateway.Razor

@typeparam T where T : class, new()
<div class="editpage">

    <ValidateForm class="p-4 h-100" Model="@Model" OnValidSubmit="OnSave">

        <EditorForm RowType=RowType.Inline ItemsPerRow=ItemsPerRow ShowLabelTooltip=true LabelWidth=200 Model="Model">
            <Buttons>
                <Button ButtonType="ButtonType.Submit" Icon="fa-solid fa-floppy-disk" IsAsync Text=@DefaultLocalizer["Save"] />
            </Buttons>
        </EditorForm>
    </ValidateForm>
</div>
